package com.chainyoung.component_tmmarket.di;

import com.chainyoung.common.di.scope.FragmentScope;
import com.chainyoung.component_tmmarket.mvp.contract.MarketListContract;
import com.chainyoung.component_tmmarket.mvp.contract.MarketMainContract;
import com.chainyoung.component_tmmarket.mvp.model.MarketListModel;
import com.chainyoung.component_tmmarket.mvp.model.MarketMainModel;

import dagger.Module;
import dagger.Provides;

@Module
public class TradeMarketModule {

    private MarketMainContract.View mainView;

    private MarketListContract.View listView;

    public TradeMarketModule(MarketMainContract.View view) {
        this.mainView = view;
    }

    public TradeMarketModule(MarketListContract.View view) {
        this.listView = view;
    }

    @FragmentScope
    @Provides
    MarketMainContract.View providerTradeView() {
        return this.mainView;
    }

    @FragmentScope
    @Provides
    MarketMainContract.Model providerTradeModel(MarketMainModel model) {
        return model;
    }


    @FragmentScope
    @Provides
    MarketListContract.View providerListView() {
        return this.listView;
    }

    @FragmentScope
    @Provides
    MarketListContract.Model providerListModel(MarketListModel model) {
        return model;
    }


}
